package com.zyl.pts.domain.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 出单记录表
* @TableName issue_record
*/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class IssueRecord implements Serializable {

    /**
    * 记录id
    */
    @JsonProperty("isrId")
    private Integer isrId;
    /**
    * 出单时间
    */
    @JsonProperty("isrTime")
    private LocalDateTime isrTime;
    /**
    * 购买数量
    */
    @JsonProperty("isrNum")
    private Integer isrNum;
    /**
    * 单价
    */
    @JsonProperty("isrPrice")
    private Double isrPrice;
    /**
    * 交付时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("isrDeliver")
    private LocalDateTime isrDeliver;
    /**
    * 申请中,已出库,已完成
    */
    @JsonProperty("isrStatus")
    private String isrStatus;
    /**
    * 客户id
    */
    @JsonProperty("isrCustomerId")
    private Integer isrCustomerId;
}
